<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="<?php echo ($sets->keyword); ?>" />
<meta name="description" content="<?php echo ($sets->description); ?>" />
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/details.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Jquery/JQuery.screen.js"></script>
<script type="text/javascript" src="__ROOT__/Public/client_remind.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/header.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/details.js"></script>

<title>三原县信息网 -- 信息详情</title>
</head>
<body>
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/basic.css" />
<div id="header">
    <div class="top">
        <strong>三原县 　<span><?php echo ($now); ?> <font style="color:#06f;"><?php echo ($hello); ?></font></span></strong>
        <?php if(isset($_COOKIE['user'])): ?><span>欢迎,<b style="color:green;"><?php echo (cookie('user')); ?></b> <a href="__ROOT__/member.php">用户中心</a>|<a href="__ROOT__/User/logout">退出</a></span>
        <?php else: ?>
        <span><a href="<?php echo U('/User/reg');?>">注册</a> | <a href="<?php echo U('/User/login');?>">登陆</a></span><?php endif; ?>
    </div>
    <div class="body">
        <div class="logo"><a href="__ROOT__"><img src="__ROOT__/Tpl/Public/images/logo.gif" alt="网站logo"/></a></div>
        <div class="search">
            <form method="get" action="__ROOT__/Search/index/" class="search">
                <ul>
                    <li class="first"><span>信息</span><img src="__ROOT__/Tpl/Public/images/arrow.png" /></li>
                    <li class="show"><a href="#" title="1">信息</a></li>
                    <li class="show"><a href="#" title="2">新闻</a></li>
                </ul>
                <input type="hidden" name="type" id="type" value="1"/><input type="text" name="keyword" class="stext" value="<?php echo ($_GET['keyword']); ?>" /> <input type="submit" value="搜索" class="sub" />
            </form>
        </div>
        <div class="toppost">
            <a href="<?php echo U('/Post/index');?>" style="color:orange;">免费发布信息</a>
            <a href="__ROOT__/member.php/Index/myInfo" style="color:#666;" class="u">修改删除信息</a>
        </div>
    </div>
</div>
<div id="category">
    <ul>
        <li><a href="__ROOT__">首页</a></li>
        <li><a href="<?php echo U('/News');?>">新闻资讯</a></li>
        <?php if(is_array($teninfonav)): $i = 0; $__LIST__ = $teninfonav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/Category/index','id='.$value['id']);?>"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
        <li><a href="<?php echo U('/About');?>">关于本站</a></li>
    </ul>
</div>

    <div id="map"><img src="__ROOT__/Tpl/Public/images/location.gif" style="position:relative;top:2px;"/>  <a href="/">三原县信息网</a> &gt; <a href="<?php echo U('/Category/index/','id='.$pid);?>"><?php echo ($parentname); ?></a> &gt; <a href="<?php echo U('/Category/index/','id='.$cid);?>"><?php echo ($childname); ?></a> &gt; <?php echo ($title); ?> </div>
    <div id="body">
        <div class="title">
            <p><em>浏览 <span style="color:#360;"><?php echo ($details["view_count"]); ?></span> 次  还有 <span style="color:red;"><?php echo ($details["keep"]); ?></span> 天过期  发布时间:<?php echo (date('Y-m-d H:i:s',$details["addtime"])); ?></em><span class="t"><?php echo ($details["title"]); ?></span></p>
        </div>
        <div class="main">
            <div class="attr">
                <?php if(is_array($details["attr"])): $i = 0; $__LIST__ = $details["attr"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><p><span style="display:inline-block;width:100px;text-align:center;"><?php echo ($key); ?>：</span>　　<span style="color:#666;display:inline-block;width:100px;"><?php echo ($value); ?></span></p><?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <div class="lianxi">
              <p><span style="display:inline-block;width:100px;text-align:center;">来自用户：</span>　<span style="color:#06f;"><a href="__ROOT__/member.php/Index/mySpace/user/<?php echo ($details["user"]); ?>" title="查看发布记录" target="_blank"><?php echo ($details["user"]); ?></a></span>　<?php if($_COOKIE['user'] != $details['user']): ?><a href="###" style="color:#360;" id="message">(向此用户发短信)</a><?php endif; ?></p>
              <p><span style="display:inline-block;width:100px;text-align:center;">联系人：</span>　<span style="color:#f60;"><?php echo ($details["lianxi"]); ?></span></p>
              <p><span style="display:inline-block;width:100px;text-align:center;">IP地址：</span>　<span ><?php echo ($details["addip"]); ?></span></p>
              <p><span style="display:inline-block;width:100px;text-align:center;">联系手机：</span>　<span style="color:red;font-weight:bold;font-size:18px;"><?php echo ($details["phone"]); ?></span></p>
              <p><span style="display:inline-block;width:100px;text-align:center;">QQ号码：</span>　<?php echo ($details["qq"]); ?></p>
              <p><span style="display:inline-block;width:100px;text-align:center;">电子邮箱：</span>　<?php echo ($details["email"]); ?></p>
            </div>
            <div class="content">
                <h3>信息详情</h3>
                <p><?php echo ($details["content"]); ?></p>
            </div>
            <div class="pic">
                <h3>相关图片</h3>
                <?php if(is_array($details["thumbnail"])): $i = 0; $__LIST__ = $details["thumbnail"];if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><a href="" class="view_bigimg"><img src="__ROOT__/<?php echo ($value); ?>" class="smallPic"/></a>
                <p class="close" style="position:absolute;cursor:pointer;display:none;"/><img src="__ROOT__/Tpl/Public/images/close.png" /></p>
                <img src="__ROOT__/<?php echo ($details['bigsrc'][$i-1]); ?>" class="bigsrc"/><?php endforeach; endif; else: echo "$empty" ;endif; ?>
            </div>
        </div>
        <div class="right">
            <div class="manage">
                <h4>信息管理</h4>
                <ul>
                    <?php if(($details["user"]) == $_COOKIE['user']): ?><li><a href="<?php echo U('/Info/update','id='.$details['id']);?>">修改</a></li>
                    <li><a href="<?php echo U('/Info/delete', 'id='.$_GET['id']);?>" onclick="return confirm('确认删除?') ? true:false">删除</a></li>
                    <?php else: ?>
                    <li style="width:auto;color:red;">此信息非您发布，无权操作</li><?php endif; ?>
                </ul>
            </div>
            <div class="like">
                <h4>你可能感兴趣的信息</h4> 
                <ul>
                    <?php if(is_array($maylike)): $i = 0; $__LIST__ = $maylike;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/Info/details','id='.$value['id']);?>" target="_blank">
                    <?php if($value['thumbnail'] != 0): ?><span style="color:#360;">[图]</span><?php endif; ?>
                    <?php echo ($value["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>   
            </div>
            <div class="like_list">
                <h4>你可能感兴趣的分类</h4> 
                <ul>
                    <?php if(is_array($othernav)): $i = 0; $__LIST__ = $othernav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/Category/index','id='.$value['id']);?>" target="_blank"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>   
            </div>
        </div>
    </div>
    
    <div id="loading" style="display:none;position:absolute;z-index:10000"><img src="__ROOT__/Tpl/Public/images/loading.gif" alt="等待"/></div>
    <div id="linfo"><p>发表成功</p></div>
    
    <!-- 发短信小窗口 -->
    <div id="post">
        <form method="post" class="post">
            <input type="hidden" value="<?php echo ($details["user"]); ?>" id="postTo"/>
            <input type="hidden" value="<?php echo (cookie('user')); ?>" id="postFrom"/>
            <input type="hidden" value="__ROOT__" id="root"/>
            <a id="m_close"><img src="__ROOT__/Tpl/Public/images/close.png" class="m_close"/></a>
            <dl>
                <dd>发送给：　<input type="text" name="mto" value="" class="text"  readonly="readonly"/></dd>
                <dd>标　题：　<input type="text" name="title" value="" class="text"/> (标题2到20位以内)</dd>
                <dd><span class="c">内　容：</span>　<textarea name="content"></textarea>  <span class="c">(内容300位以内)</span></dd>
                <dd><input type="submit" name="send" value="发　送" class="sub"/></dd>
            </dl>
        </form>
    </div>
    <!-- 发短信小窗口 -->
<div id="flinks">
    <h2>友情链接</h2>  
    <ul>
        <?php if(is_array($flinks)): $i = 0; $__LIST__ = $flinks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($value["url"]); ?>" target="_blank"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>  
</div>
<div id="footer">
    <p>©三原县信息网 晋 ICP备12009119号</p>
    <p>Powered by 信息网 xxx.xxxx.xx</p>
</div>

</body>
</html>